package auto;

import org.openqa.selenium.By;
import org.openqa.selenium.edge.EdgeDriver;
import org.openqa.selenium.edge.EdgeOptions;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: DELL
 * Date: 2023-05-12
 * Time: 20:20
 */
public class AutoDemo7 {
    public static void main(String[] args) {
        EdgeOptions options = new EdgeOptions();
        options.addArguments("--remote-allow-origins=*");
        EdgeDriver edgeDriver = new EdgeDriver(options);
        edgeDriver.get("https:www.baidu.com");
        edgeDriver.findElement(By.cssSelector("#kw")).sendKeys("刘亦菲");
        edgeDriver.findElement(By.cssSelector("#su")).click();
        edgeDriver.quit();
    }
}
